@@ -445,30 +445,6 @@ extension Value {
445445 }
446446 }
447447
448- var leadingZeroBitCount : Value {
449- switch self {
450- case let . i32( rawValue) : return . i32( UInt32 ( rawValue. leadingZeroBitCount) )
451- case let . i64( rawValue) : return . i64( UInt64 ( rawValue. leadingZeroBitCount) )
452- default : fatalError ( " Invalid type \( type) for `Value. \( #function) ` implementation " )
453- }
454- }
455-
456- var trailingZeroBitCount : Value {
457- switch self {
458- case let . i32( rawValue) : return . i32( UInt32 ( rawValue. trailingZeroBitCount) )
459- case let . i64( rawValue) : return . i64( UInt64 ( rawValue. trailingZeroBitCount) )
460- default : fatalError ( " Invalid type \( type) for `Value. \( #function) ` implementation " )
461- }
462- }
463-
464- var nonzeroBitCount : Value {
465- switch self {
466- case let . i32( rawValue) : return . i32( UInt32 ( rawValue. nonzeroBitCount) )
467- case let . i64( rawValue) : return . i64( UInt64 ( rawValue. nonzeroBitCount) )
468- default : fatalError ( " Invalid type \( type) for `Value. \( #function) ` implementation " )
469- }
470- }
471-
472448 func rotl( _ l: Self ) -> Self {
473449 switch ( self , l) {
474450 case let ( . i32( rawValue) , . i32( l) ) :
@@ -527,36 +503,6 @@ extension Value {
527503 }
528504 }
529505
530- static func + ( lhs: Self , rhs: Self ) -> Self {
531- switch ( lhs, rhs) {
532- case let ( . i32( lhs) , . i32( rhs) ) : return . i32( lhs &+ rhs)
533- case let ( . i64( lhs) , . i64( rhs) ) : return . i64( lhs &+ rhs)
534- case let ( . f32( lhs) , . f32( rhs) ) : return . f32( ( Float32 ( bitPattern: lhs) + Float32( bitPattern: rhs) ) . bitPattern)
535- case let ( . f64( lhs) , . f64( rhs) ) : return . f64( ( Float64 ( bitPattern: lhs) + Float64( bitPattern: rhs) ) . bitPattern)
536- default : fatalError ( " Invalid types \( lhs. type) and \( rhs. type) for `Value. \( #function) ` implementation " )
537- }
538- }
539-
540- static func - ( lhs: Self , rhs: Self ) -> Self {
541- switch ( lhs, rhs) {
542- case let ( . i32( lhs) , . i32( rhs) ) : return . i32( lhs &- rhs)
543- case let ( . i64( lhs) , . i64( rhs) ) : return . i64( lhs &- rhs)
544- case let ( . f32( lhs) , . f32( rhs) ) : return . f32( ( Float32 ( bitPattern: lhs) - Float32( bitPattern: rhs) ) . bitPattern)
545- case let ( . f64( lhs) , . f64( rhs) ) : return . f64( ( Float64 ( bitPattern: lhs) - Float64( bitPattern: rhs) ) . bitPattern)
546- default : fatalError ( " Invalid types \( lhs. type) and \( rhs. type) for `Value. \( #function) ` implementation " )
547- }
548- }
549-
550- static func * ( lhs: Self , rhs: Self ) -> Self {
551- switch ( lhs, rhs) {
552- case let ( . i32( lhs) , . i32( rhs) ) : return . i32( lhs &* rhs)
553- case let ( . i64( lhs) , . i64( rhs) ) : return . i64( lhs &* rhs)
554- case let ( . f32( lhs) , . f32( rhs) ) : return . f32( ( Float32 ( bitPattern: lhs) * Float32( bitPattern: rhs) ) . bitPattern)
555- case let ( . f64( lhs) , . f64( rhs) ) : return . f64( ( Float64 ( bitPattern: lhs) * Float64( bitPattern: rhs) ) . bitPattern)
556- default : fatalError ( " Invalid types \( lhs. type) and \( rhs. type) for `Value. \( #function) ` implementation " )
557- }
558- }
559-
560506 static func / ( lhs: Self , rhs: Self ) -> Self {
561507 switch ( lhs, rhs) {
562508 case let ( . f32( lhs) , . f32( rhs) ) : return . f32( ( Float32 ( bitPattern: lhs) / Float32( bitPattern: rhs) ) . bitPattern)
0 commit comments