Skip to content

Commit c5e1967

Browse files
committed
fix(warning): taking the absolute value of 'bfloat16' has no effect
The compinv function is invalid when building for BFLOAT16 and leads to the following warning: `taking the absolute value of unsigned type 'bfloat16' (aka 'unsigned short') has no effect`. Update pre-processor conditions to remove its definition when building for BFLOAT16.
1 parent 58ee3c0 commit c5e1967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ static __inline int readenv_atoi(char *env) {
781781
#endif
782782
#endif
783783

784-
#if !defined(XDOUBLE) || !defined(QUAD_PRECISION)
784+
#if !defined(BFLOAT16) && (!defined(XDOUBLE) || !defined(QUAD_PRECISION))
785785

786786
static __inline void compinv(FLOAT *b, FLOAT ar, FLOAT ai){
787787

0 commit comments

Comments
 (0)