Changeset 92 for Include/basic
- Timestamp:
- Feb 12, 2007, 11:47:19 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/basic/function.sbp
r57 r92 139 139 Function _System_SetSign(x As Double, isNegative As Long) As Double 140 140 #ifdef _WIN64 141 SetQWord( VarPtr(CopySign), (GetQWord(VarPtr(x)) And &h7fffffffffffffff) Or (isNegative << 63))141 SetQWord(AddressOf(CopySign), (GetQWord(VarPtr(x)) And &h7fffffffffffffff) Or (isNegative << 63)) 142 142 #else 143 SetDWord( VarPtr(CopySign), GetDWord(VarPtr(x)))144 SetDWord( VarPtr(CopySign) + SizeOf (DWord), GetQWord(VarPtr(x) + SizeOf (DWord)) And &h7fffffff Or (isNegative << 31))143 SetDWord(AddressOf(CopySign), GetDWord(VarPtr(x))) 144 SetDWord(AddressOf(CopySign) + SizeOf (DWord), GetQWord(VarPtr(x) + SizeOf (DWord)) And &h7fffffff Or (isNegative << 31)) 145 145 #endif 146 146 End Function … … 175 175 176 176 Function CDWord(num As Double) As DWord 177 CDWord=num 177 CDWord=num As DWord 178 178 End Function 179 179 180 180 Function CInt(number As Double) As Long 181 CInt=number 181 CInt=number As Long 182 182 End Function 183 183 184 184 Function CSng(number As Double) As Single 185 CSng=number 185 CSng=number As Single 186 186 End Function 187 187 … … 279 279 280 280 Function Sin(number As Double) As Double 281 Sin = Math.Si n(number)281 Sin = Math.Sign(number) 282 282 End Function 283 283 … … 322 322 p[0] = 0 323 323 nan = _System_GetInf(/*x,*/ FALSE) 324 IsNaNOrInf = (memcmp(p , VarPtr(nan), SizeOf (Double)) = 0)324 IsNaNOrInf = (memcmp(p As BytePtr, VarPtr(nan), SizeOf (Double)) = 0) 325 325 End Function 326 326
Note:
See TracChangeset
for help on using the changeset viewer.