@@ -529,7 +529,7 @@ pub mod Atomics {
529
529
///
530
530
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/add)
531
531
#[ wasm_bindgen( static_method_of = Atomics , catch) ]
532
- pub fn add ( typed_array : & JsValue , index : u32 , value : f32 ) -> Result < f32 , JsValue > ;
532
+ pub fn add ( typed_array : & JsValue , index : u32 , value : f64 ) -> Result < f64 , JsValue > ;
533
533
534
534
/// The static `Atomics.and()` method computes a bitwise AND with a given
535
535
/// value at a given position in the array, and returns the old value
@@ -539,7 +539,7 @@ pub mod Atomics {
539
539
///
540
540
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/and)
541
541
#[ wasm_bindgen( static_method_of = Atomics , catch) ]
542
- pub fn and ( typed_array : & JsValue , index : u32 , value : f32 ) -> Result < f32 , JsValue > ;
542
+ pub fn and ( typed_array : & JsValue , index : u32 , value : f64 ) -> Result < f64 , JsValue > ;
543
543
544
544
/// The static `Atomics.compareExchange()` method exchanges a given
545
545
/// replacement value at a given position in the array, if a given expected
@@ -553,9 +553,9 @@ pub mod Atomics {
553
553
pub fn compare_exchange (
554
554
typed_array : & JsValue ,
555
555
index : u32 ,
556
- expected_value : f32 ,
557
- replacement_value : f32 ,
558
- ) -> Result < f32 , JsValue > ;
556
+ expected_value : f64 ,
557
+ replacement_value : f64 ,
558
+ ) -> Result < f64 , JsValue > ;
559
559
560
560
/// The static `Atomics.exchange()` method stores a given value at a given
561
561
/// position in the array and returns the old value at that position.
@@ -564,7 +564,7 @@ pub mod Atomics {
564
564
///
565
565
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/exchange)
566
566
#[ wasm_bindgen( static_method_of = Atomics , catch) ]
567
- pub fn exchange ( typed_array : & JsValue , index : u32 , value : f32 ) -> Result < f32 , JsValue > ;
567
+ pub fn exchange ( typed_array : & JsValue , index : u32 , value : f64 ) -> Result < f64 , JsValue > ;
568
568
569
569
/// The static `Atomics.isLockFree()` method is used to determine
570
570
/// whether to use locks or atomic operations. It returns true,
@@ -580,7 +580,7 @@ pub mod Atomics {
580
580
///
581
581
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/load)
582
582
#[ wasm_bindgen( static_method_of = Atomics , catch) ]
583
- pub fn load ( typed_array : & JsValue , index : u32 ) -> Result < f32 , JsValue > ;
583
+ pub fn load ( typed_array : & JsValue , index : u32 ) -> Result < f64 , JsValue > ;
584
584
585
585
/// The static `Atomics.notify()` method notifies up some agents that
586
586
/// are sleeping in the wait queue.
@@ -597,14 +597,14 @@ pub mod Atomics {
597
597
///
598
598
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/or)
599
599
#[ wasm_bindgen( static_method_of = Atomics , catch) ]
600
- pub fn or ( typed_array : & JsValue , index : u32 , value : f32 ) -> Result < f32 , JsValue > ;
600
+ pub fn or ( typed_array : & JsValue , index : u32 , value : f64 ) -> Result < f64 , JsValue > ;
601
601
602
602
/// The static `Atomics.store()` method stores a given value at the given
603
603
/// position in the array and returns that value.
604
604
///
605
605
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/store)
606
606
#[ wasm_bindgen( static_method_of = Atomics , catch) ]
607
- pub fn store ( typed_array : & JsValue , index : u32 , value : f32 ) -> Result < f32 , JsValue > ;
607
+ pub fn store ( typed_array : & JsValue , index : u32 , value : f64 ) -> Result < f64 , JsValue > ;
608
608
609
609
/// The static `Atomics.sub()` method substracts a given value at a
610
610
/// given position in the array and returns the old value at that position.
@@ -613,7 +613,7 @@ pub mod Atomics {
613
613
///
614
614
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/sub)
615
615
#[ wasm_bindgen( static_method_of = Atomics , catch) ]
616
- pub fn sub ( typed_array : & JsValue , index : u32 , value : f32 ) -> Result < f32 , JsValue > ;
616
+ pub fn sub ( typed_array : & JsValue , index : u32 , value : f64 ) -> Result < f64 , JsValue > ;
617
617
618
618
/// The static `Atomics.wait()` method verifies that a given
619
619
/// position in an `Int32Array` still contains a given value
@@ -634,7 +634,7 @@ pub mod Atomics {
634
634
typed_array : & JsValue ,
635
635
index : u32 ,
636
636
value : i32 ,
637
- timeout : f32 ,
637
+ timeout : f64 ,
638
638
) -> Result < JsValue , JsValue > ;
639
639
640
640
/// The static `Atomics.xor()` method computes a bitwise XOR
@@ -645,7 +645,7 @@ pub mod Atomics {
645
645
///
646
646
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/xor)
647
647
#[ wasm_bindgen( static_method_of = Atomics , catch) ]
648
- pub fn xor ( typed_array : & JsValue , index : u32 , value : f32 ) -> Result < f32 , JsValue > ;
648
+ pub fn xor ( typed_array : & JsValue , index : u32 , value : f64 ) -> Result < f64 , JsValue > ;
649
649
}
650
650
}
651
651
0 commit comments