Print this page
11210 libm should be cstyle(1ONBLD) clean
*** 20,40 ****
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma weak fdimf = __fdimf
#include "libm.h" /* for islessequal macro */
float
! __fdimf(float x, float y) {
/*
* On SPARC v8plus/v9, this could be implemented as follows
* (assuming %f0 = x, %f1 = y, return value left in %f0):
*
* fcmps %fcc0,%f0,%f1
--- 20,42 ----
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
+
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma weak fdimf = __fdimf
#include "libm.h" /* for islessequal macro */
float
! __fdimf(float x, float y)
! {
/*
* On SPARC v8plus/v9, this could be implemented as follows
* (assuming %f0 = x, %f1 = y, return value left in %f0):
*
* fcmps %fcc0,%f0,%f1
*** 47,53 ****
--- 49,56 ----
*/
if (islessequal(x, y)) {
x = 0.0f;
y = -x;
}
+
return (x - y);
}