Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • jwilkes/purr-data
  • aggraef/purr-data
  • samthursfield/purr-data
  • prakhar/purr-data
  • yadu05/purr-data
  • NegiAkash890/purr-data
  • prateekpardeshi/purr-data
  • Shruti3004/purr-data
  • hidimpu/purr-data
  • Atseosi/purr-data
  • piyushjasaiwal/purr-data
  • deveshprasad/purr-data
  • skm_7/purr-data
  • sankt/purr-data
  • ashim_tom/purr-data
  • dineshsoni02/purr-data
  • chaitanya1-coder/purr-data
  • Nitish0007/purr-data
  • nitin/purr-data
  • shuvam09/purr-data
  • gabrielabittencourt/purr-data
  • sivasai/purr-data
  • flachyjoe/purr-data
  • ishankaler/purr-data
  • prateek/purr-data
  • RukshanJS/purr-data
  • rajatshrm648/purr-data
  • Srashti/purr-data
  • Paarth/purr-data
  • AniruddhaGawali/purr-data
  • brittneyjuliet/purr-data
  • prakharagarwal1/purr-data
  • Shreyanshpaliwalcmsmn/purr-data
  • k_amrut/purr-data
  • AyushAnand/purr-data
  • Va16hav07/purr-data
36 results
Show changes
Showing
with 51 additions and 47 deletions
...@@ -10,7 +10,11 @@ SOURCES = ...@@ -10,7 +10,11 @@ SOURCES =
# For objects that only build on certain platforms, add those to the SOURCES # For objects that only build on certain platforms, add those to the SOURCES
# line for the right platforms. # line for the right platforms.
SOURCES_macosx = ambient_light_sensor.c iodisplay.c keyboard_light.c sudden_motion_sensor.c smc.c keyboard_layout.c #
# For some reason keyboard_layout.c doesn't work anymore. Even searching for
# some of the system function calls used returns zero results. So we disable
# building it below.
SOURCES_macosx = ambient_light_sensor.c iodisplay.c keyboard_light.c sudden_motion_sensor.c smc.c #keyboard_layout.c
SOURCES_iphoneos = multitouch.c SOURCES_iphoneos = multitouch.c
# list all pd objects (i.e. myobject.pd) files here, and their helpfiles will # list all pd objects (i.e. myobject.pd) files here, and their helpfiles will
...@@ -88,7 +92,7 @@ ORIGDIR=pd-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION) ...@@ -88,7 +92,7 @@ ORIGDIR=pd-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION)
UNAME := $(shell uname -s) UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CPU := $(shell uname -p) CPU := $(shell uname -p)
ifeq ($(CPU),arm) # iPhone/iPod Touch ifeq ($(CPU),arm-iphone) # iPhone/iPod Touch
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
EXTENSION = pd_darwin EXTENSION = pd_darwin
SHARED_EXTENSION = dylib SHARED_EXTENSION = dylib
...@@ -121,10 +125,10 @@ ifeq ($(UNAME),Darwin) ...@@ -121,10 +125,10 @@ ifeq ($(UNAME),Darwin)
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target)
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
endif endif
ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include ALL_CFLAGS += $(FAT_FLAGS) -fPIC
# if the 'pd' binary exists, check the linking against it to aid with stripping # if the 'pd' binary exists, check the linking against it to aid with stripping
BUNDLE_LOADER = $(shell test ! -e $(PD_PATH)/bin/pd || echo -bundle_loader $(PD_PATH)/bin/pd) BUNDLE_LOADER = $(shell test ! -e $(PD_PATH)/bin/pd || echo -bundle_loader $(PD_PATH)/bin/pd)
ALL_LDFLAGS += $(FAT_FLAGS) -bundle $(BUNDLE_LOADER) -undefined dynamic_lookup -L/sw/lib ALL_LDFLAGS += $(FAT_FLAGS) -bundle $(BUNDLE_LOADER) -undefined dynamic_lookup
SHARED_LDFLAGS += $(FAT_FLAGS) -dynamiclib -undefined dynamic_lookup \ SHARED_LDFLAGS += $(FAT_FLAGS) -dynamiclib -undefined dynamic_lookup \
-install_name @loader_path/$(SHARED_LIB) -compatibility_version 1 -current_version 1.0 -install_name @loader_path/$(SHARED_LIB) -compatibility_version 1 -current_version 1.0
ALL_LIBS += -lc $(LIBS_macosx) ALL_LIBS += -lc $(LIBS_macosx)
......
...@@ -72,7 +72,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION) ...@@ -72,7 +72,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION)
UNAME := $(shell uname -s) UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CPU := $(shell uname -p) CPU := $(shell uname -p)
ifeq ($(CPU),arm) # iPhone/iPod Touch ifeq ($(CPU),arm-iphone) # iPhone/iPod Touch
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
EXTENSION = pd_darwin EXTENSION = pd_darwin
OS = iphoneos OS = iphoneos
...@@ -101,9 +101,9 @@ ifeq ($(UNAME),Darwin) ...@@ -101,9 +101,9 @@ ifeq ($(UNAME),Darwin)
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target)
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
endif endif
CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ CFLAGS += $(FAT_FLAGS) -fPIC \
-I/Applications/Pd-extended.app/Contents/Resources/include -I/Applications/Pd-extended.app/Contents/Resources/include
LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup
# if the 'pd' binary exists, check the linking against it to aid with stripping # if the 'pd' binary exists, check the linking against it to aid with stripping
LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd) LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)
LIBS += -lc LIBS += -lc
......
...@@ -70,7 +70,7 @@ ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx) ...@@ -70,7 +70,7 @@ ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx)
UNAME := $(shell uname -s) UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CPU := $(shell uname -p) CPU := $(shell uname -p)
ifeq ($(CPU),arm) # iPhone/iPod Touch ifeq ($(CPU),arm-iphone) # iPhone/iPod Touch
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
EXTENSION = pd_darwin EXTENSION = pd_darwin
OS = iphoneos OS = iphoneos
...@@ -100,9 +100,9 @@ ifeq ($(UNAME),Darwin) ...@@ -100,9 +100,9 @@ ifeq ($(UNAME),Darwin)
FAT_FLAGS = -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) FAT_FLAGS = -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target)
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
endif endif
CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ CFLAGS += $(FAT_FLAGS) -fPIC \
-I/Applications/Pd-extended.app/Contents/Resources/include -I/Applications/Pd-extended.app/Contents/Resources/include
LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/opt/local/lib LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup
# if the 'pd' binary exists, check the linking against it to aid with stripping # if the 'pd' binary exists, check the linking against it to aid with stripping
LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd) LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)
LIBS += -lc LIBS += -lc
......
An auto-tuning PD External, based on An auto-tuning PD External, based on
autotalent an auto-tuning LADSPA plugin and an older port by Maxus Germanus autotalent an auto-tuning LADSPA plugin and an older port by Maxus Germanus
Free software by Thomas A. Baran. Autotalent v0.2
http://web.mit.edu/tbaran/www/autotune.html Free software (GPLv2) by Thomas A. Baran.
VERSION 0.2 http://tombaran.info/autotalent.html
Ivica Ico Bukvic <ico.bukvic.net> Ivica Ico Bukvic <ico.bukvic.net>
VERSION 0.9.1 VERSION 0.9.1
......
...@@ -71,7 +71,7 @@ ORIGDIR=pd-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION) ...@@ -71,7 +71,7 @@ ORIGDIR=pd-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION)
UNAME := $(shell uname -s) UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CPU := $(shell uname -p) CPU := $(shell uname -p)
ifeq ($(CPU),arm) # iPhone/iPod Touch ifeq ($(CPU),arm-iphone) # iPhone/iPod Touch
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
EXTENSION = pd_darwin EXTENSION = pd_darwin
OS = iphoneos OS = iphoneos
...@@ -101,8 +101,8 @@ ifeq ($(UNAME),Darwin) ...@@ -101,8 +101,8 @@ ifeq ($(UNAME),Darwin)
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target)
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
endif endif
CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include CFLAGS += $(FAT_FLAGS) -fPIC
LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup
# if the 'pd' binary exists, check the linking against it to aid with stripping # if the 'pd' binary exists, check the linking against it to aid with stripping
LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd) LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)
LIBS += -lc LIBS += -lc
......
...@@ -68,7 +68,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION) ...@@ -68,7 +68,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION)
UNAME := $(shell uname -s) UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CPU := $(shell uname -p) CPU := $(shell uname -p)
ifeq ($(CPU),arm) # iPhone/iPod Touch ifeq ($(CPU),arm-iphone) # iPhone/iPod Touch
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
EXTENSION = pd_darwin EXTENSION = pd_darwin
OS = iphoneos OS = iphoneos
...@@ -97,9 +97,9 @@ ifeq ($(UNAME),Darwin) ...@@ -97,9 +97,9 @@ ifeq ($(UNAME),Darwin)
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
endif endif
CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ CFLAGS += $(FAT_FLAGS) -fPIC \
-I/Applications/Pd-extended.app/Contents/Resources/include -I/Applications/Pd-extended.app/Contents/Resources/include
LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup
# if the 'pd' binary exists, check the linking against it to aid with stripping # if the 'pd' binary exists, check the linking against it to aid with stripping
LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd) LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)
LIBS += -lc LIBS += -lc
......
...@@ -523,7 +523,7 @@ ifeq ($(system), Darwin) ...@@ -523,7 +523,7 @@ ifeq ($(system), Darwin)
/Applications/Pd-extended*.app/Contents/Resources/include/pdextended \ /Applications/Pd-extended*.app/Contents/Resources/include/pdextended \
/Applications/Pd*.app/Contents/Resources/src)) /Applications/Pd*.app/Contents/Resources/src))
extension = pd_darwin extension = pd_darwin
cpp.flags := -DUNIX -DMACOSX -I /sw/include cpp.flags := -DUNIX -DMACOSX
c.flags := c.flags :=
c.ldflags := -undefined suppress -flat_namespace -bundle c.ldflags := -undefined suppress -flat_namespace -bundle
c.ldlibs := -lc c.ldlibs := -lc
......
...@@ -72,7 +72,7 @@ ORIGDIR=pd-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION) ...@@ -72,7 +72,7 @@ ORIGDIR=pd-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION)
UNAME := $(shell uname -s) UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CPU := $(shell uname -p) CPU := $(shell uname -p)
ifeq ($(CPU),arm) # iPhone/iPod Touch ifeq ($(CPU),arm-iphone) # iPhone/iPod Touch
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
EXTENSION = pd_darwin EXTENSION = pd_darwin
OS = iphoneos OS = iphoneos
...@@ -102,8 +102,8 @@ ifeq ($(UNAME),Darwin) ...@@ -102,8 +102,8 @@ ifeq ($(UNAME),Darwin)
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target)
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
endif endif
CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include CFLAGS += $(FAT_FLAGS) -fPIC
LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup
# if the 'pd' binary exists, check the linking against it to aid with stripping # if the 'pd' binary exists, check the linking against it to aid with stripping
LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd) LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)
LIBS += -lc LIBS += -lc
......
...@@ -73,7 +73,7 @@ ORIGDIR=pd-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION) ...@@ -73,7 +73,7 @@ ORIGDIR=pd-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION)
UNAME := $(shell uname -s) UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CPU := $(shell uname -p) CPU := $(shell uname -p)
ifeq ($(CPU),arm) # iPhone/iPod Touch ifeq ($(CPU),arm-iphone) # iPhone/iPod Touch
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
EXTENSION = pd_darwin EXTENSION = pd_darwin
OS = iphoneos OS = iphoneos
...@@ -103,8 +103,8 @@ ifeq ($(UNAME),Darwin) ...@@ -103,8 +103,8 @@ ifeq ($(UNAME),Darwin)
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target)
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
endif endif
CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include CFLAGS += $(FAT_FLAGS) -fPIC
LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup
# if the 'pd' binary exists, check the linking against it to aid with stripping # if the 'pd' binary exists, check the linking against it to aid with stripping
LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd) LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)
LIBS += -lc LIBS += -lc
......
...@@ -33,8 +33,8 @@ OPTIM_FLAGS = -mpowerpc-gpopt -mcpu=750 ...@@ -33,8 +33,8 @@ OPTIM_FLAGS = -mpowerpc-gpopt -mcpu=750
CFLAGS = -DPD -DUNIX -DMACOSX -Dunix $(OPTIM_FLAGS) \ CFLAGS = -DPD -DUNIX -DMACOSX -Dunix $(OPTIM_FLAGS) \
-Wall -W -Wno-unused -Wno-parentheses -Wno-switch -Wno-shadow -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -Wno-shadow
INCLUDES = -I$(pd_src)/src -I/sw/include INCLUDES = -I$(pd_src)/src
LDFLAGS = -bundle -bundle_loader $(PDEXECUTABLE) -L/sw/lib LDFLAGS = -bundle -bundle_loader $(PDEXECUTABLE)
externals: $(EXTERNALS:.c=.pd_darwin) externals: $(EXTERNALS:.c=.pd_darwin)
......
...@@ -77,7 +77,7 @@ static t_int *matrix_perform(t_int *w) ...@@ -77,7 +77,7 @@ static t_int *matrix_perform(t_int *w)
memcpy(x, in, sizeof(t_float)*n); memcpy(x, in, sizeof(t_float)*n);
in = x; in = x;
} }
bzero(out, sizeof(t_float)*n); /* init output */ memset(out, 0, sizeof(t_float)*n); /* init output */
for (j=0; j<n; j++) for (j=0; j<n; j++)
for (i=0; i<n; i++) for (i=0; i<n; i++)
......
...@@ -747,8 +747,8 @@ t_class *dwt_class, *idwt_class, *dwt16_class, *idwt16_class; ...@@ -747,8 +747,8 @@ t_class *dwt_class, *idwt_class, *dwt16_class, *idwt16_class;
static void dwt_reset(t_dwt *x) static void dwt_reset(t_dwt *x)
{ {
bzero(x->x_ctl.c_update, 16*sizeof(t_float)); memset(x->x_ctl.c_update, 0, 16*sizeof(t_float));
bzero(x->x_ctl.c_predict, 16*sizeof(t_float)); memset(x->x_ctl.c_predict, 0, 16*sizeof(t_float));
x->x_ctl.c_update[7] = .25; x->x_ctl.c_update[7] = .25;
x->x_ctl.c_update[8] = .25; x->x_ctl.c_update[8] = .25;
......
...@@ -75,7 +75,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION) ...@@ -75,7 +75,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION)
UNAME := $(shell uname -s) UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CPU := $(shell uname -p) CPU := $(shell uname -p)
ifeq ($(CPU),arm) # iPhone/iPod Touch ifeq ($(CPU),arm-iphone) # iPhone/iPod Touch
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
EXTENSION = pd_darwin EXTENSION = pd_darwin
OS = iphoneos OS = iphoneos
...@@ -105,8 +105,8 @@ ifeq ($(UNAME),Darwin) ...@@ -105,8 +105,8 @@ ifeq ($(UNAME),Darwin)
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target)
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
endif endif
CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include CFLAGS += $(FAT_FLAGS) -fPIC
LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup
# if the 'pd' binary exists, check the linking against it to aid with stripping # if the 'pd' binary exists, check the linking against it to aid with stripping
LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd) LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)
LIBS += -lc LIBS += -lc
......
...@@ -22,7 +22,7 @@ static int makeseed(void) ...@@ -22,7 +22,7 @@ static int makeseed(void)
return (random1_nextseed & 0x7fffffff); return (random1_nextseed & 0x7fffffff);
} }
static int rand_random_fl(seed) { static int rand_random_fl(unsigned int seed) {
int q; int q;
double state; double state;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#endif #endif
static int makeseed(void); static int makeseed(void);
static int rand_random1(int); static int rand_random1(unsigned int);
static int makeseed(void) static int makeseed(void)
{ {
...@@ -27,7 +27,7 @@ static int makeseed(void) ...@@ -27,7 +27,7 @@ static int makeseed(void)
/* -------------------------- random1 ------------------------------ */ /* -------------------------- random1 ------------------------------ */
/* linear congruential generator. Generator x[n+1] = a * x[n] mod m */ /* linear congruential generator. Generator x[n+1] = a * x[n] mod m */
static int rand_random1(seed) static int rand_random1(unsigned int seed)
{ {
int state; int state;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#endif #endif
static int makeseed(void); static int makeseed(void);
static int rand_random1(int); static int rand_random1(unsigned int);
static int makeseed(void) static int makeseed(void)
{ {
...@@ -27,7 +27,7 @@ static int makeseed(void) ...@@ -27,7 +27,7 @@ static int makeseed(void)
/* -------------------------- random1 ------------------------------ */ /* -------------------------- random1 ------------------------------ */
/* linear congruential generator. Generator x[n+1] = a * x[n] mod m */ /* linear congruential generator. Generator x[n+1] = a * x[n] mod m */
static int rand_random1(seed) static int rand_random1(unsigned int seed)
{ {
int state; int state;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#endif #endif
static int makeseed(void); static int makeseed(void);
static int rand_random_fl(int); static int rand_random_fl(unsigned int);
static int makeseed(void) static int makeseed(void)
{ {
...@@ -25,7 +25,7 @@ static int makeseed(void) ...@@ -25,7 +25,7 @@ static int makeseed(void)
return (random1_nextseed & 0x7fffffff); return (random1_nextseed & 0x7fffffff);
} }
static int rand_random_fl(seed) { static int rand_random_fl(unsigned int seed) {
int q; int q;
double state; double state;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#endif #endif
static int makeseed(void); static int makeseed(void);
static int rand_random_fl(int); static int rand_random_fl(unsigned int);
static int makeseed(void) static int makeseed(void)
{ {
...@@ -25,7 +25,7 @@ static int makeseed(void) ...@@ -25,7 +25,7 @@ static int makeseed(void)
return (random1_nextseed & 0x7fffffff); return (random1_nextseed & 0x7fffffff);
} }
static int rand_random_fl(seed) { static int rand_random_fl(unsigned int seed) {
int q; int q;
double state; double state;
......
...@@ -27,7 +27,7 @@ static int makeseed(void) ...@@ -27,7 +27,7 @@ static int makeseed(void)
return (random1_nextseed & 0x7fffffff); return (random1_nextseed & 0x7fffffff);
} }
static int rand_random_icg(seed, p) static int rand_random_icg(int seed, int p)
{ {
static int a, b, q, r; static int a, b, q, r;
int state; int state;
...@@ -123,7 +123,7 @@ static void random_icg_bang(t_random_icg *x) ...@@ -123,7 +123,7 @@ static void random_icg_bang(t_random_icg *x)
{ {
double nval; double nval;
x->x_state = rand_random_icg(x->x_state, x->x_p); x->x_state = rand_random_icg(x->x_state, (int)x->x_p);
nval = (((x->x_state / x->x_p) - 1) * (double)(x->x_g - x->x_f) + (double)x->x_f); nval = (((x->x_state / x->x_p) - 1) * (double)(x->x_g - x->x_f) + (double)x->x_f);
......
...@@ -26,7 +26,7 @@ static int makeseed(void) ...@@ -26,7 +26,7 @@ static int makeseed(void)
return (random1_nextseed & 0x7fffffff); return (random1_nextseed & 0x7fffffff);
} }
static int rand_random_icg(seed, p) static int rand_random_icg(int seed, int p)
{ {
static int a, b, q, r; static int a, b, q, r;
int state; int state;
...@@ -115,7 +115,7 @@ static void random_icg_tilde_bang(t_random_icg_tilde *x) ...@@ -115,7 +115,7 @@ static void random_icg_tilde_bang(t_random_icg_tilde *x)
{ {
double nval; double nval;
x->x_state = rand_random_icg(x->x_state, x->x_p); x->x_state = rand_random_icg(x->x_state, (int)x->x_p);
nval = (((x->x_state / x->x_p) - 1) * (double)(x->x_g - x->x_f) + (double)x->x_f); nval = (((x->x_state / x->x_p) - 1) * (double)(x->x_g - x->x_f) + (double)x->x_f);
......