Comments (6)
wouldn't (*s = sin(x), *c = cos(x)) be "cleaner"?
from gdl.
indeed sincos is a GNU extension.
from gdl.
This simple patch fixes it:
--- src/ssrfpack.c.orig 2018-04-07 19:40:08 UTC
+++ src/ssrfpack.c
@@ -7,6 +7,10 @@
#define sincosf(x, s, c) __sincosf(x, s, c)
#endif
+#ifdef __FreeBSD__
+#define sincos(x,s,c) *s = sin(x); *c = cos(x)
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
from gdl.
Thanks! Will create a pull request right now.
from gdl.
Here it is: #62
from gdl.
... yet perhaps a better option would be to use gnulib:
https://www.gnu.org/software/gnulib/manual/gnulib.html#sincos
from gdl.
Related Issues (20)
- incomplete format c() (julian date)
- our LABEL_DATE is broken HOT 2
- GDL accepts HASH() with odd number of elements !
- Cannot open window, PLPLOT ERROR HOT 4
- keyword /nozero in several functions + useless code ! HOT 1
- HDF4, NETCDF clash – mainly a heads up for Arch/Manjaro (etc.) users.
- GDL don't detect multiple uses of the same keyword when calling pro or function HOT 1
- compilation issues on Debian HOT 5
- compilation segfaults sometimes HOT 6
- write_jpeg and write_png produce black images on !version.release 8.2 HOT 4
- test_elmhes and test_formats fail on non-x86_64 HOT 14
- shmmap causes linux to reboot if gdl was not started with cpu,tpool_nthreads=1 HOT 2
- lots of plplot error messages when ploting after special "window" sequence HOT 3
- Java error for Workbench with gdl 1.05 Windows installer HOT 5
- Problem with PRTARR() (was : pb with FITS Binary tables) HOT 9
- plot of array with only NaN hangs session HOT 3
- Possible duplicate: test_byte_conversion.pro and test_bytscl.pro fail on arm64
- interpol returns float result for complex input data HOT 1
- strings are incompatible with operators and, or, xor etc HOT 16
- GDL will not accept spaces in path to procedure HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdl.